﻿
namespace LS.Nc6.Application.System
{
    /// <summary>
    /// 字典管理自定义方法
    /// </summary>
    public interface ISysDictionaryService : IBaseInterface<SysDictionaryEntity>
    {
        ///<summary>
        ///删除字典类型对象 
        /// </summary>
        /// <param name="dicids">字典code</param>
        /// <returns></returns>
        Task<int> DeleteType(string dicids);

        /// <summary>
        /// 修改字典状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        Task<int> ModifyState(long id,int state);

        /// <summary>
        /// 根据字典类型获取名称
        /// </summary>
        /// <param name="dval"></param>
        /// <param name="dicType"></param>
        /// <returns></returns>
        Task<string> DictionaryName(string dval, SysDictionaryType dicType);

        /// <summary>
        /// 根据字典类型下所有标签
        /// </summary>
        /// <param name="dicType"></param>
        /// <returns></returns>
        Task<List<SysDictionaryEntity>> DictionaryTagByDicType(SysDictionaryType dicType);
    }
}
